class CreateTodos < ActiveRecord::Migration
  def self.up
    create_table :todos do |t|
      t.column :todo, :string, :null => false
      t.column :description, :string
      t.column :user_id, :integer
      t.column :sort_id, :integer
      t.column :e_type, :integer
      t.column :create_for_date, :date
      t.column :start_time, :time
      t.column :end_time, :time
      t.column :update_time, :datetime
      t.column :check_state, :integer
    end
  end

  def self.down
    drop_table :todos
  end
end
